//默认样式
@import "../../lib/reset.scss";

$dev-color-active: #3bc03b; //主题色
$dev-color-btn:#f9aa32;//按钮、icon等底色
$dev-color-txt:#e52217;//价格等颜色
$dev-container-width: 1200px; //内容宽
$dev-btn-border-radius: 4px; //圆角值
$dev-hover-orange:#ff9600;//橙色按钮鼠标停留
$dev-hover-green:#00ab00;//绿色按钮鼠标停留
$dev-link:#1070ff;//链接或者蓝色按钮


.container-fluid {
    display: block;
    width: 100%;
    min-width: $dev-container-width;
}
*{
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: $dev-container-width;
}
input[readonly]{
    background-color: #eee;
}
button{
    border: 0;
    outline: none;
}
button:disabled{
    background-color: #ccc !important;
    cursor: not-allowed;
}
.container {
    display: block;
    margin: auto;
    width: $dev-container-width;
}

.clearfix {
    &:before,
    &:after {
        display: table;
        content: " ";
    }
    &:after {
        clear: both;
    }
}
a.disabled{
    background-color: #ccc !important;
    color: #fff;
    cursor: not-allowed;
}
.ie9-filter{
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}
.hide {
    display: none !important;
}

.show {
    display: block !important;
}
.placeholder{
    position: absolute;
    left: 10px;
    top: 50%;
    z-index: 2;
    height: 20px;
    line-height: 20px;
    margin-top: -10px;
    max-width: 100%;
    color: #b2b2b2;
    font-size: inherit;
    background-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ani {
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}
.table{
    display: table;
    width: 100%;
    height: 100%;
    .table-cell{
        display: table-cell;
        vertical-align: middle;
    }
}
.fl{
    float: left !important;
}
.fr{
    float: right !important;
}
.tip-error,.tip-success{
    font-size: 20px !important;
    color: #666;
    line-height: 1.6;
    padding: 60px 20px 30px;
    margin: 0;
    text-align: center;
}
.icon-error{
    display: inline-block;
    vertical-align: middle;
    margin-top: -3px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: url(../../img/err.png) no-repeat center !important;
    background-size: contain;
    margin-right: 10px;
}
.icon-succ{
    display: inline-block;
    vertical-align: middle;
    margin-top: -3px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: url(../../img/login/success.png) no-repeat center !important;
    background-size: contain;
    margin-right: 10px;
}
//分页样式
.page_box {
    text-align: center;
    margin-top: 40px;
    a,
    span {
        display: inline-block;
        padding: 0 15px;
        margin: 0 4px;
        height: 30px;
        line-height: 30px;
        color: #999;
        font-size: 14px;
        border: 1px solid #eeeeee;
        &.dian {
            border-color: #fff;
            &:hover {
                color: #999;
                border-color: #fff;
            }
        }
        &.off {
            &:hover {
                color: #999;
                border-color: #eeeeee;
            }
        }
        &.to {
            height: 32px;
            padding: 0;
            border: none;
            input {
                color: #999;
                font-size: 16px;
                padding: 0 5px;
                width: 40px;
                height: 30px;
                border: 1px solid #eeeeee;
            }
        }
        &.go {
            color: #fff;
            cursor: pointer;
            background-color: $dev-color-active;
            border-color: $dev-color-active;
            &:hover {
                color: #fff;
            }
        }
        &.on,
        &:hover {
            color: $dev-color-active;
            border-color: $dev-color-active;
        }
    }
}

//通用单选
label {
    display: inline-block;
    cursor: pointer;
    input[type="checkbox"],
    input[type="radio"] {
        appearance: none;
        -webkit-appearance: none;
        outline: none;
        display: none;
        &+i {
            width: 12px;
            height: 12px;
            display: inline-block;
            background: url(../../img/mall/sprite-mall.png) no-repeat;
            background-position: 0 -128px;
            vertical-align: middle;
        }
        &:checked {
            &+i {
                background-position: 0 -116px
            }
        }
    }
}

label {
    &.c15 {
        input[type="checkbox"] {
            &+i {
                width: 15px;
                height: 15px;
                background-position: 0px -191px;
            }
            &:checked {
                &+i {
                    background-position: 0px -176px;
                }
            }
            &:disabled {
                &+i {
                    cursor: not-allowed;
//                  background: #e5e5e5;
//                  border-radius: 3px;
//                  border: 1px solid #ccc;
                }
            }
        }
    }
    &.c17 {
        input[type="checkbox"] {
            &+i {
                width: 17px;
                height: 17px;
                background-position: 0px -280px;
            }
            &:checked {
                &+i {
                    background-position: 0px -263px;
                }
            }
            &:disabled {
                &+i {
                    cursor: not-allowed;
//                  background: #e5e5e5;
//                  border-radius: 3px;
//                  border: 1px solid #ccc;
                }
            }
        }
    }
    &.radio {
        input[type="radio"] {
            &+i {
                width: 18px;
                height: 18px;
                background-position: 0px -140px;
            }
            &:checked {
                &+i {
                    background-position: 0px -158px;
                }
            }
        }
    }
    &.sex{
        input[type="radio"] {
            &+i {
                width: 18px;
                height: 18px;
                background-position: 0px -206px;
            }
            &:checked {
                &+i {
                    background-position: 0px -224px;
                }
            }
        }
    }
}

//加减组件
.numbox {
    display: inline-block;
    @extend .clearfix;
    .btn-minus,
    .btn-plus,
    .numbox-input {
        float: left;
        width: 16px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        font-size: 14px;
        color: #333;
        border: 1px solid #e5e5e5;
    }
    .btn-minus,
    .btn-plus {
        cursor: pointer;
    }
    .numbox-input {
        text-align: center;
        margin: 0 -1px;
        width: 24px;
    }
}

//单行css
.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



//弹出框
.dialog{
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    display: none;
}
.dialog-cont{
    display: block;
    background-color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    .font-limited{
        color: #999;
        line-height: 20px;
        font-size: 12px;
        position: absolute;
        right: 6px;
        bottom: 0px;
    }
}
.maskbg{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
}
.close{
    position: absolute;
    right: 43px;
    top: 35px;
    width: 34px;
    height: 34px;
    background: url(../../img/close.png) no-repeat;
    background-size: cover;
    cursor: pointer;
}
.btn-green,.btn-orange{
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    min-width: 60px;
    height: 36px;
    line-height: 36px;
    border-radius: $dev-btn-border-radius;
    text-align: center;
    font-size: 14px;
    color: #fff;
    border: 0;
}
.btn-green{
    background-color: $dev-color-active;
    &:hover{
        background-color: $dev-hover-green;
        color: #fff;
    }
}
.btn-orange{
    background-color: $dev-color-btn;
    &:hover{
        background-color: $dev-hover-orange;
        color: #fff;
    }
}
.warn{
    white-space: nowrap;
    display: none;
    position: absolute;
    left: 10px;
    bottom: -18px;
    z-index: 9;
    font-size: 12px;
    height: 18px;
    line-height: 18px;
    color: $dev-color-txt;
    font-weight: normal;
    i {
        display: inline-block;
        margin-right: 2px;
        width: 14px;
        height: 14px;
        vertical-align: -2px;
        background: url(../../img/login/sprite-login.png) no-repeat 0 0;
    }
    &.dimed{
        display: none;
    }
}
.font-limited{
    position: absolute;
    right: 8px;
    bottom: 2px;
    font-size: 12px;
    color: #999;
    line-height: 1.2;
}
.dialog-confirm{
    .dialog-cont{
        width: 400px;
        height: 240px;
        padding: 40px 50px 80px !important;
        -ms-transform: translate(-50%,-50%);
        -webkit-transform: translate3d(-50%,-50%,0);
        -moz-transform: translate3d(-50%,-50%,0);
        transform: translate3d(-50%,-50%,0);
    }
    .close{
        right: 20px;
        top: 20px;
    }
    .btn-groups{
        width: 100%;
        text-align: center;
        position: absolute;
        bottom: 30px;
        left: 0;
        padding-left: 50px;
        padding-right: 50px;
    }
    .btn-groups>[class^="btn-"]{
        display: inline-block;
        min-width: 100px;
        height: 32px;
        margin-right: 10px;
        &:last-child{
            margin-right: 0;
        }
        line-height: 32px;
    }
    .btn-groups>[class^="btn-"]:hover{
        color: #fff;
    }
    .icon-warn{
        width: 44px;
        height: 44px;
        display: inline-block;
        vertical-align: middle;
        margin-top: -3px;
        background: url(../../img/icon-warn.png) no-repeat;
        background-size: cover;
        margin-right: 10px;
    }
    .confirm-inner{
        width: 100%;
        height: 100%;
        display: table;
        text-align: center;
        font-size: 14px;
        color: #333;
        .confirm-txt{
            display: table-cell;
            line-height: 1.5;
            vertical-align: middle;
        }
    }
}
/*--file手型--*/
input[type="file"]{
    font-size: 300px;
    opacity: 0;
}
/* Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    input[type="file"]{
        font-size: 0;
    }
}

/*--返回顶部--*/
.back-top{
    display: none;
    position: fixed;
    right: 0;
    bottom: 160px;
    z-index: 999;
    width: 40px;
    height: 40px;
    background-color: #949494;
    text-align: center;
    cursor: pointer;
    padding-top: 11px;
    .icon-top{
        display: inline-block;
        width: 20px;
        height: 18px;
        background: url(../../img/home/home-icons.png) no-repeat -214px -2px;
    }
    &:hover{
        background-color: rgba(100,100,100,.6);
    }
}

.toast-wrap{
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 999;
    max-width: 300px;
    overflow: hidden;
    border-radius: 4px;
    padding: 10px 20px;
    color: #fff;
    background-color: rgba(0,0,0,.6);
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    text-align: center;
    p{
        font-size: 14px;
        line-height: 24px;
        word-break: break-all;
    }
    .ico-loading{
        display: block;
        width: 40px;
        height: 40px;
        margin: 10px auto;
        background: url(../../img/loading.gif) no-repeat center;
        background-size: contain;
    }
}

/**
     * 公用
 */
@import "common/sidebar.scss";//首页浮栏
@import "common/header.scss";//头部
@import "common/footer.scss";//底部 